package com.tyk.bookstore.front.member.model.query;

import com.tyk.bookstore.front.common.core.model.constant.ValidateConstant;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author tyk
 * @description BehaviorCaptchaCheckQuery
 */
@Data
public class BehaviorCodeCheckQuery {

    @Schema(description = "主体[手机号]")
    @Size(min = ValidateConstant.PHONE_MIN_LENGTH, max = ValidateConstant.PHONE_MAX_LENGTH)
    @Pattern(regexp = ValidateConstant.PHONE_REGEXP)
    private String principal;

    @Schema(description = "行为验证码校验参数")
    @NotBlank
    private String verifyParam;

}
